package mark.tom.gear.base.provider

import android.content.Context
import android.net.Uri
import com.alibaba.android.arouter.facade.annotation.Route
import com.alibaba.android.arouter.facade.service.PathReplaceService
import mark.tom.gear.base.constants.C
import mark.tom.gear.base.utils.LogUtil

/**
 * @Description: ARouter全局路径替换服务实现类
 * @Author: ttmk110@163.com
 * @Package: mark.tom.gear.base.provider
 * @Date: 2021/1/14
 * @Copyright: 版权归 Mark 所有
 * <ModifyLog>
 * @ModifyContent:
 * @Author:
 * @Date:
 * </ModifyLog>
 */
@Route(path = C.AROUTER_REPLACE_SERVICE_PATH)
class PathReplaceServiceImpl : PathReplaceService {

    override fun forString(path: String?): String? {
        LogUtil.d("PathReplaceService Path -> %s", path)
        return path
    }

    override fun forUri(uri: Uri?): Uri? {
        LogUtil.d("PathReplaceService Uri -> %s", uri.toString())
        return uri
    }

    override fun init(context: Context?) {
        // Do Nothing
    }
}